package code.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("历史记录")
@TableName("t_history")
public class History {

    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("用户id")
    private String id;
    @ApiModelProperty("用户名称")
    private String username;
    @ApiModelProperty("消息内容")
    private String message;
    @ApiModelProperty("消息时间")
    private Date time;

}
